package teamwork.pc.service;

import javax.annotation.Resource;

import teamwork.pc.dao.StaffDao;
import teamwork.pc.entity.Staff;

/**
 *
 *
 */
public class LoginService {
    @Resource
    protected StaffDao staffDao;
    /**
     *
     * @param email
     * @param password
     * @return
     */
    public boolean canLogin(String email, String password){
        Staff s = staffDao.findByEmailAndPassword(email, password);
        return s != null;
    }
}
